package com.example.service.impl;

import com.example.dao.UserMoneyRecordMapper;
import com.example.model.UserMoneyRecord;
import com.example.service.UserMoneyRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userMoneyRecordService")
public class UserMoneyRecordServiceImpl implements UserMoneyRecordService {

    UserMoneyRecordMapper userMoneyRecordMapper;

    @Resource
    public void setUserMoneyRecordMapper(UserMoneyRecordMapper userMoneyRecordMapper) {
        this.userMoneyRecordMapper = userMoneyRecordMapper;
    }


    @Override
    public int insert(UserMoneyRecord record) {
        return userMoneyRecordMapper.insert(record);
    }
}
